-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes twitch panel #2618
Fixes twitch panel #2618
Conversation
d453493
to
5f8a1c7
Compare
0111e82
to
0c7792e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just had a few comments on it.
std::transform(media_id.begin(), | ||
media_id.end(), | ||
media_id.begin(), | ||
::tolower); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use base::ToLowerASCII
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
return; | ||
} | ||
ledger::TwitchEventInfo old_event; | ||
std::map<std::string, ledger::TwitchEventInfo>::const_iterator iter = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Could use auto
here to make this declaration more concise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
if (publisher_id.empty()) { | ||
const std::string url = publisher_url + "/videos"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like url
isn't used anywhere, unless I'm just missing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're good on this:
https://github.com/brave/brave-core/pull/2618/files#diff-410ec7b37fbed59610d3617cce571df3R646
it's used outside of diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
vendor/bat-native-ledger/src/bat/ledger/internal/media/twitch.cc
Outdated
Show resolved
Hide resolved
Resolves brave/brave-browser#3590 Resolves brave/brave-browser#4680
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Quickly went through the test case outlined under #2618 (comment) to make sure things are working before uplifting #2633. Looks like things are generally working. QA will eventually go through a more detailed check/verification. Example of the fix working under |
Resolves brave/brave-browser#3590
Resolves brave/brave-browser#4680
Resolves brave/brave-browser#3417
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests && npm run test-security
) onnpm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.